<?php
	
function	create_img()
{
	header ("Content-type: image/png");
	$image = imagecreate($_GET['Largeur'], $_GET['Hauteur']);

	$orange = imagecolorallocate($image, 255, 128, 0);
	$bleu = imagecolorallocate($image, 0, 0, 255);
	$bleuclair = imagecolorallocate($image, 156, 227, 254);
	$noir = imagecolorallocate($image, 0, 0, 0);
	$blanc = imagecolorallocate($image, 255, 255, 255);
	
	//creation des rectangles
	ImageFilledRectangle ($image, $x1, $y1, $x2, $y2, $couleur);
	imagepng($image);
}
?>
